<template>
	<view :class="pageClass" :style="pageStyle" v-if="pageReady">
		<moxi-nav :set="navSet"></moxi-nav> 
		<diy-articles :set="set" ></diy-articles>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				set:{
					type: 'category',
					column: [],
					color: '',
					content: '',
					tip:'',
					search:"",
					top_column_id:""
				}
			}
		},
		methods: {
			
		},onLoad() {
			if(this.param.search){
				this.set.search = this.param.search;
			}
			if(this.param.column){
				this.set.column = JSON.parse(this.param.column);
				this.set.top_column_id = this.set.column[0]
			}
			this.set.color = this.app_color;
	
			if(this.param.tip){
				this.set.tip = this.param.tip;
			}
			if(this.param.page_title){
				uni.setNavigationBarTitle({
					title: this.param.page_title
				});
			}
		}
	}
</script>

<style>

</style>
